.PHONY: api
api:
	goctl api go --api api/main.api --dir ./ --style go_zero

.PHONY: run
run:
	go run nexus.go

.PHONY: build
build: clean
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o nexus nexus.go

.PHONY: deploy75
deploy75: build
	@echo "正在部署服务到192.168.110.75..."
	./goblin --host 192.168.110.75 --user root --password root --name nexus --bin nexus --spvconf /etc/supervisord.d
	
.PHONY: clean
clean:
	rm -rf ./nexus